/summon villager ~ ~2 ~ {VillagerData:{profession:librarian,level:5,type:plains},Offers:{Recipes:[
{buy:{id:oak_log,Count:5},buyB:{id:spruce_log,Count:5},sell:{id:leather_helmet,Count:1,tag:{display:{Name:"{\"text\":\"Log Helmet\",\"color\":\"dark_green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:1,Operation:0,UUIDLeast:111111,UUIDMost:111111,Slot:"head"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:1,Operation:0,UUIDLeast:111111,UUIDMost:111111,Slot:"head"}]
},maxUses:9999999}},
{buy:{id:oak_log,Count:8},buyB:{id:spruce_log,Count:8},sell:{id:leather_chestplate,Count:1,tag:{display:{Name:"{\"text\":\"Log Chestplate\",\"color\":\"dark_green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDLeast:111112,UUIDMost:111112,Slot:"chest"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:2,Operation:0,UUIDLeast:111112,UUIDMost:111112,Slot:"chest"}]
},maxUses:9999999}},
{buy:{id:oak_log,Count:7},buyB:{id:spruce_log,Count:7},sell:{id:leather_leggings,Count:1,tag:{display:{Name:"{\"text\":\"Log Leggings\",\"color\":\"dark_green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDLeast:111113,UUIDMost:111113,Slot:"legs"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:1,Operation:0,UUIDLeast:111113,UUIDMost:111113,Slot:"legs"}]
},maxUses:9999999}},
{buy:{id:oak_log,Count:4},buyB:{id:spruce_log,Count:4},sell:{id:leather_boots,Count:1,tag:{display:{Name:"{\"text\":\"Log Boots\",\"color\":\"dark_green\"}"},AttributeModifiers:
[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:1,Operation:0,UUIDLeast:111114,UUIDMost:111114,Slot:"feet"},
{AttributeName:"generic.armor",Name:"generic.armor",Amount:1,Operation:0,UUIDLeast:111114,UUIDMost:111114,Slot:"feet"}]
},maxUses:9999999}}]}}